/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pojo;

/**
 *
 * @author Thanh Minh
 */
public class Thuoc {

    private String MaThuoc;
    private String TenThuoc;
    private String DonViTinh;
    private double GiaBan;
    private int MaCDung;
    private int TinhTrangSD;

    public Thuoc(String MaThuoc, String TenThuoc, String DonViTinh, double GiaBan, int MaCDung, int TinhTrangSD) {
        this.MaThuoc = MaThuoc;
        this.TenThuoc = TenThuoc;
        this.DonViTinh = DonViTinh;
        this.GiaBan = GiaBan;
        this.MaCDung = MaCDung;
        this.TinhTrangSD = TinhTrangSD;
    }

    public Thuoc() {
        this.MaThuoc = this.TenThuoc = this.DonViTinh = "";
        this.GiaBan = 0.0;
        this.MaCDung = -1;
        this.TinhTrangSD = 0;
    }

    public Thuoc(Thuoc T) {
        this.MaThuoc = T.MaThuoc;
        this.TenThuoc = T.TenThuoc;
        this.DonViTinh = T.DonViTinh;
        this.GiaBan = T.GiaBan;
        this.TinhTrangSD = T.TinhTrangSD;
        this.MaCDung = T.MaCDung;
    }

    public String getMaThuoc() {
        return MaThuoc;
    }

    public void setMaThuoc(String MaThuoc) {
        this.MaThuoc = MaThuoc;
    }

    public String getTenThuoc() {
        return TenThuoc;
    }

    public void setTenThuoc(String TenThuoc) {
        this.TenThuoc = TenThuoc;
    }

    public String getDonViTinh() {
        return DonViTinh;
    }

    public void setDonViTinh(String DonViTinh) {
        this.DonViTinh = DonViTinh;
    }

    public double getGiaBan() {
        return GiaBan;
    }

    public void setGiaBan(double GiaBan) {
        this.GiaBan = GiaBan;
    }

    public int getMaCDung() {
        return MaCDung;
    }

    public void setMaCDung(int MaCDung) {
        this.MaCDung = MaCDung;
    }

    public int getTinhTrangSD() {
        return TinhTrangSD;
    }

    public void setTinhTrangSD(int TinhTrangSD) {
        this.TinhTrangSD = TinhTrangSD;
    }
}
